<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>快速搜索器</title>
    <script src="js/jquery.js"></script>
    <style>
        .link{
            position: relative;
            width: 300px;
            height: 150px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #e4b9c0;
        }
        .link div{
            margin-left: 10px;
        }

        .text{
            color: #2aabd2;
        }
        #btn{
            position: absolute;
            top: 0px;
            right: 0px;
        }
    </style>
<script>
    $(function () {
        $(".link").toggle();
        $("#btnshow").click(function () {
            $(".link").toggle();
        })

       $(".text").click(function () {
            let $text = $(this).text();
            $("#btnshow").text($text);
           $(".link").toggle();
       })
    });

    function closeLink() {
        $(".link").toggle();
    }
</script>
</head>
<body>

<div style="margin-left: 100px;color: #ec971f;font-weight: 600">快速搜索器</div>
<div>地点：
<button  id="btnshow">请选择</button>
</div>

<!--连接框-->
<div class="link">
    <button id="btn" onclick="closeLink()">关闭</button>
    请选择地点<br>
    <div  class="text">北京</div>
    <div  class="text">上海</div>
    <div  class="text">广州</div>
    <div  class="text">武汉</div>
</div>

</body>
</html>